package CRM;

import com.google.appengine.api.datastore.Key;
import java.util.ArrayList;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @version 0.1.3
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Company
{
    /**
     * Contains unique id for contact
     */
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    /**
     * Contains unique name of Company
     */
    @Persistent
    private String name;

    /**
     * Contains website of Company
     */
    @Persistent
    private String website;

    /**
     * Contains owner of Company
     */
    @Persistent
    private String owner;

    /**
     * Contains officePhone number of Company
     */
    @Persistent
    private String officePhone;

    /**
     * Contains fax number of Company
     */
    @Persistent
    private String fax;

    /**
     * Contains otherPhone number of Company
     */
    @Persistent
    private String otherPhone;

    /**
     * Contains email adress of Company
     */
    @Persistent
    private String email;

    /**
     * Contains projects of Company
     */
    @Persistent
    ArrayList<Project> project;

    /**
     * Contains all of the notes about the Company
     */
    @Persistent
    ArrayList<Note> notes;

    /**
     * Contains all of the tasks of the company
     */
    @Persistent
    ArrayList<Task> tasks;

    public Company(String name, String website, String owner, String officePhone, String fax, String otherPhone, String email, ArrayList<Project> project, ArrayList<Note> notes)
    {
        setName(name);
        setWebsite(website);
        setOwner(owner);
        setOfficePhone(officePhone);
        setFax(fax);
        setOtherPhone(otherPhone);
        setEmail(email);
        setProject(project);
        setNote(notes);
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getFax()
    {
        return fax;
    }

    public void setFax(String fax)
    {
        this.fax = fax;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public ArrayList<Note> getNote()
    {
        return notes;
    }

    public void setNote(ArrayList<Note> notes)
    {
        this.notes = notes;
    }

    public String getOfficePhone()
    {
        return officePhone;
    }

    public void setOfficePhone(String officePhone)
    {
        this.officePhone = officePhone;
    }

    public String getOtherPhone()
    {
        return otherPhone;
    }

    public void setOtherPhone(String otherPhone)
    {
        this.otherPhone = otherPhone;
    }

    public String getOwner()
    {
        return owner;
    }

    public void setOwner(String owner)
    {
        this.owner = owner;
    }

    public ArrayList<Project> getProject()
    {
        return project;
    }

    public void setProject(ArrayList<Project> project)
    {
        this.project = project;
    }

    public String getWebsite()
    {
        return website;
    }

    public void setWebsite(String website)
    {
        this.website = website;
    }
}